 <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Cuevana</title>

<link href="plugin.css" rel="stylesheet" type="text/css" />
<link href="video-js.css" rel="stylesheet" type="text/css" media="screen" charset="utf-8">
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="detectflash2.js"></script>
<script src="video.js" type="text/javascript" charset="utf-8"></script>

<script type="text/javascript">

var count = 0;
//var url = 'http://referer.us/http://s95.wupload.com/download/301238968/4ef7ad92/11f48ab8/0/1/bef51e51/fb900e89818f851dc1300e9c14cb780428f0e019';

var url = "http://localhost:8015/media/video.mp4";

var requiredMajorVersion = 9;
var requiredMinorVersion = 0;
var requiredRevision = 0;
//var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
var hasReqestedVersion = false;

$(document).ready(function(){
	if (url!='') {
		downCount();
	} else {
		showError('nourl')
	}
})
function downCount() {
	
		if (hasReqestedVersion) {
			var d = '<embed height="360" width="640" type="application/x-shockwave-flash" src="player.swf" id="playerSWF" name="playerSWF" flashvars="&amp;url=http://localhost:8015/media/video.mp4&amp;sub_pre=ES&amp;subs=,ES,EN" allowscriptaccess="always" allowfullscreen="true" bgcolor="#000000" />';
		} else {
			var d = '<div class="video-js-box"> \
    <video class="video-js" width="640" height="360" controls> \
      <source src="'+url+'" type=\'video/mp4; codecs="avc1.42E01E, mp4a.40.2"\' /></video> \
  </div>';
		}
		$('#countdiv').html(d)

}
function showError(id) {
	$('#countdiv').hide()
	$('#'+id).show();
}
</script>
</head>

<body>

<div id="countdiv">
	<div class="wrap">
		<h3 class="center">La reproducción del video comenzará en <span id="counter_num">0</span> <span id="counter_seg"></span></h3>
		<div class="banner"><iframe frameborder="0" width="300" height="250" src="/banners/play.html" /></div>
		<p class="center">Hacer click en el anuncio no interrumpirá la carga del video</p>
	</div>
</div>

<div id="nourl" class="error">
<h3>El video que intentas reproducir no existe</h3>
<p>Por favor asegúrate de estar seleccionando la fuente correcta y vuelve a intentarlo.</p>
</div>

<div id="noflash" class="error">
<h3>No se encontró Flash Player 9 o superior</h3>
<p>Necesitas tener instalado Flash Player 9 o superior para poder reproducir el video. Por favor descarga o actualiza Flash Player a la última versión desde <a href='http://get.adobe.com/es/flashplayer/' target='_blank'>aquí</a>.</p>
</div>


</body>
</html>